<!DOCTYPE html>
<html>
<head>
    <<%="%"%> include ../common/meta.ejs <%="%"%>>
    <<%="%"%> include ../common/public.ejs <%="%"%>>
</head>
<body>
<<%="%"%> include ../common/header.ejs <%="%"%>>

<div class="container page-content">
    <div class="page-header">
        <h1>
            <%= modelNameText %>管理
            <small id="parseInfo">

            </small>
        </h1>
        <div class="operationButton">
            <div class="btn-group" role="group">
                <button class="btn btn-primary" id="addData">
                    <span class="glyphicon glyphicon-plus"></span> 添加
                </button>
                <button class="btn btn-warning" id="editDate">
                    <span class="glyphicon glyphicon-pencil"></span> 修改
                </button>
                <button class="btn btn-danger" id="removeDate">
                    <span class="glyphicon glyphicon-trash"></span> 删除
                </button>
            </div>

            <!--<form id="imageButton" class="inline-block">-->
                <!--<div class="btn-group" role="group">-->
                    <!--<button type="button" class="btn btn-primary fileinput-button">-->
                        <!--<span class="glyphicon glyphicon-import"></span> 导入-->
                        <!--<input id="importData" type="file" name="media" multiple>-->
                    <!--</button>-->
                    <!--<button class="btn btn-default" id="exportDate" type="button">-->
                        <!--<span class="glyphicon glyphicon-export"></span> 导出-->
                    <!--</button>-->
                <!--</div>-->
            <!--</form>-->
        </div>
    </div>

    <div class="row">
        <div class="col-md-8">
            <div class="queryCondition">
                <form class="form-horizontal query-form" id="queryConditionForm">
                    <div class="row">
                        <div class="col-md-5">
                            <div class="form-group">
                                <label class="col-md-4 control-label">名称</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" placeholder="根据名称查询" name="name_like" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-2">
                            <button class="btn btn-default btn-query" type="submit">
                                搜索
                            </button>
                        </div>
                    </div>
                </form>
            </div>

            <div id="datalist"></div>
        </div>
        <div class="col-md-4">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <div class="panel-title"><%= modelNameText %>信息</div>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal detail-form" id="detail-form"><% for(key in field){if(!unDetail[key]){%>
                        <div class="form-group">
                            <label class="col-md-3 control-label"><%= nameFormatter[key] || key %></label>
                            <div class="col-md-9">
                                <p class="form-control-static" name="<%= key %>"></p>
                            </div>
                        </div><% }} %>
                    </form>
                    <form class="form-horizontal edit-form default-hidden" id="edit-form"><% var key;%><% for(key in field){if(!unEditor[key]){%>
                        <div class="form-group">
                            <label class="col-md-3 control-label"><%= nameFormatter[key] || key %></label>
                            <div class="col-md-9">
                                <input class="form-control" name="<%= key %>" type="text" />
                            </div>
                        </div><% }} %>
                        <div class="text-center">
                            <button type="button" class="btn btn-primary btn-small" id="edit_form_save">保存</button>
                            <button type="button" class="btn btn-default btn-small" id="edit_form_cancel">取消</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<<%="%"%> include ../common/footer.ejs <%="%"%>>


</body>
</html>
